<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery-1.12.4.js"></script>
    <script>
        $(function () {
            $.ajax({
                url: 'http://localhost:8080/books/accp',
                dataType: 'json',
                success: function (result) {
                    console.log(result);
                },
                error: function (xhr) {
                    alert('error');
                    console.log(xhr);
                }
            })
        });
    </script>
</head>
<body>
<h1>public hello</h1>
<a href="/demo?a.name=作者1&a.age=18&b.name=西游记">查看</a>
<form action="/demo">
    作者名字<input name="a.name">
    年龄<input name="a.age">
    书名<input name="b.name">
    <input type="submit">
</form>
<form action="/upload" method="post" enctype="multipart/form-data">
    描述：<input name="desc">
    附件：<input type="file" name="myfile"><br/>
    <input type="submit">
</form>
</body>
</html>